Auto merge of #2737 - aidanhs:aphs-hash-url-serialization, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 24 May 2016 18:49:48 +0000 (11:49 -0700)
committerbors <bors@rust-lang.org>
Tue, 24 May 2016 18:49:48 +0000 (11:49 -0700)
Hash url serialization to ensure hash stability

`as_str` is documented to return the serialization of a url (http://servo.github.io/rust-url/url/struct.Url.html#method.as_str).
The serialization of a url has a spec (https://url.spec.whatwg.org/#url-serializing).

Hashing the serialization of a url insulates cargo against possible decisions to alter how rust-url does hashing (I've observed it happening twice). Note that rust-url happens to do this internally (but is not guaranteed to in future) and so this change doesn't actually have any effect on hash values.

r? @alexcrichton

Closes #1710


Trivial merge